Main Page | Data Structures | File List | Data Fields | Globals

BustaModelMPGameState Class Reference

Multi-player Game State representation. More...

#include <BustaModelMPGameState.h>


Public Member Functions

 BustaModelMPGameState ()
 Constructor.
 BustaModelMPGameState (int opponentCount)
 CONSTRUCTOR.
 BustaModelMPGameState (BustaModelGameState *gs, BustaModelOpponent **oppos, int n)
 Constructor.
 ~BustaModelMPGameState ()
 Destructor.
int getFullViewID ()
 Returns the identification number of the fully viewed opponent.
BustaModelGameStategetGameState ()
 Gets opponent GameState.
BustaModelOpponentgetOpponent (int n)
 Gets opponent.
BustaModelOpponent ** getOpponents ()
 Returns opponent array.
int getSeqNo ()
 Returns the sequence number of the gamestate.
void setFullViewID (int oID)
 Sets the identification number of the opponent to be fully viewed.
void setNumOpps (int opponentCount)
 Sets the number of tracked brief opponent states.
void setSeqNo (int newSeqNo)
 Sets the sequence number of the gamestate.


Detailed Description

Multi-player Game State representation.

Game state representation for MP opponents. Contains Game State model for selected opponent, plus important info for other opponents


Constructor & Destructor Documentation

BustaModelMPGameState::BustaModelMPGameState  ) 
 

Constructor.

Initializes variables

BustaModelMPGameState::BustaModelMPGameState int  opponentCount  ) 
 

CONSTRUCTOR.

Initializes a full gamestate, and an array of opponentCount brief gamestates.

Parameters:
opponentCount The number of brief gamestates to construct

BustaModelMPGameState::BustaModelMPGameState BustaModelGameState gs,
BustaModelOpponent **  oppos,
int  n
 

Constructor.

Initializes variables

BustaModelMPGameState::~BustaModelMPGameState  ) 
 

Destructor.

Destructor


Member Function Documentation

int BustaModelMPGameState::getFullViewID  ) 
 

Returns the identification number of the fully viewed opponent.

Returns the network identification number of the opponent whose full gamestate is being tracked.

Returns:
The network identification number of the fully viewed opponent. Returns -1 if no opponent is being fully viewed.

BustaModelGameState * BustaModelMPGameState::getGameState  ) 
 

Gets opponent GameState.

Gets pointer to the GameState of highlighted opponent

BustaModelOpponent * BustaModelMPGameState::getOpponent int  n  ) 
 

Gets opponent.

Returns a pointer to the opponent in the nth location in the array

BustaModelOpponent ** BustaModelMPGameState::getOpponents  ) 
 

Returns opponent array.

Returns the entire array of opponent brief states

Returns:
A BustaModelOpponent pointer array representing the opponent brief game states

int BustaModelMPGameState::getSeqNo  ) 
 

Returns the sequence number of the gamestate.

Returns the sequence number associated with the gamestate. Each gamestate that is received from the server is marked with a sequence number. This sequence number is stored, and it is this method that returns that sequence number.

Returns:
The sequence number of the gamestate

void BustaModelMPGameState::setFullViewID int  oID  ) 
 

Sets the identification number of the opponent to be fully viewed.

Sets the network identification number of the opponent that is being fully viewed. This should be the identification number of the opponent whose gamestate is being tracked in opponentGS.

Parameters:
oID The identification number of the fully tracked opponent

void BustaModelMPGameState::setNumOpps int  opponentCount  ) 
 

Sets the number of tracked brief opponent states.

Sets the number of opponents to track using brief game states.

void BustaModelMPGameState::setSeqNo int  newSeqNo  ) 
 

Sets the sequence number of the gamestate.

Sets the sequence number associated with this gamestate to a particular value.

Parameters:
newSeqNo The sequence number to set the gamestate to
See also:
getSeqNo()


Generated on Sun Aug 14 22:24:56 2005 for BustaSandwich Models by  doxygen 1.4.2-20050421